package file;

import java.io.File;
import java.io.FileFilter;

//文件过滤器lambda版
public class ListFilesDemo3 {
    public static void main(String[] args) {
        File dir=new File(".");
        if (dir.isDirectory()){
            File[] subs=dir.listFiles(new FileFilter() {
                @Override
                public boolean accept(File pathname) {
                    return false;
                }
            });
        }
    }
}
